Show All
Create a Web script on a Web page
Security Security vulnerabilities in external files or controls may extend to Web pages that use those items. For example, external style sheets (files with a .css extension), script files (files with a .js extension), custom ASP.NET controls, or other items, may pose a security risk. Be sure your style sheets, add-ins, themes, executables, scripts, controls, or other files come from trusted sources.
- If you have not already done so, add the
Insert Script command to the
Tools menu.
How?
- On the
Tools menu, click
Customize, and then click the
Commands tab.
- In the
Categories box, click
Tools.
- Drag
Insert Script from the
Commands box over the
Tools menu.
- When the
Tools menu displays the menu commands,
point to the
Macro submenu.
- When the
Macro submenu displays the menu commands,
point to the location where you want
Insert Script to appear on the menu,
and then release the mouse.
- In the
Customize dialog box, click
Close.
- Click in your Web page where you want to add a script.
- On the
Tools menu, point to
Macro, and then click
Insert Script.
- Use the Microsoft
Script Editor to write your script.
- Return to the Office program.
- To update your Web page with the changes, click
Refresh
on the
Refresh
toolbar.